package com.kitty.game.fight.hunqi.passive;

import com.kitty.game.equip.model.RoleEquip;
import com.kitty.game.equip.service.EquipService;
import com.kitty.game.fight.bean.Fight;
import com.kitty.game.fight.bean.FightObject;
import org.springframework.beans.factory.annotation.Autowired;

public abstract class HunQiEffect {

    /**
     * 技能特效id
     */
    public abstract short getEffectId();

    /**
     * 效果触发
     *
     * @param fight
     * @param member
     * @param params
     * @return
     */
    public abstract Object trigger(Fight fight, FightObject member, Object... params);


    /**
     * 计算效果数量
     */
    public abstract int getHunQiCount(RoleEquip hunqi);


    public static double getHunQiSkillValue(int level){
        level = level-1;
        return  0.22310 * (1.39 * level * level + 85 * level + 100);
    }

}
